package se.webbzon.boltzmann.game.sequence.condition;

import se.webbzon.boltzmann.game.sequence.Sequence;

public class RandomCondition extends ConditionSequenceNode {
	
	/*============================================================
	Constructors
	============================================================*/

	public RandomCondition(Sequence sequence) {
		super(sequence,null,null);
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public boolean isTrue() {
		return (Math.random() >= 0.5);
			
	}

}
